<template>
	<view>
	<view class="userfab_box">
		<view @click="openuser"><uni-icons class="l" :size="20" color="#249afe" type="person-filled" /><text>我的</text></view>
		<view @click="showContent"><uni-icons class="l" :size="20" color="#c73677" type="cart-filled" /><text>商城</text></view>
	</view></view>
</template>

<script>
	export default {
		name: 'userFab',
		props: {},
		methods: {
			openuser(){
				uni.navigateTo({
				    url: '/pages/shop/index?index=3'
				});
			},
			showContent(){
				uni.navigateTo({
				    url: '/pages/shop/index?index=1'
				});
			}
		}
	}
</script>

<style>
.userfab_box{position: fixed;right: 0; bottom: 200rpx; width: 180rpx;}
.userfab_box view{ height: 70rpx; line-height: 70rpx; background-color: #f1f1f1; border-radius: 35rpx 0 0 35rpx; color: #333; padding-left:10rpx ; margin-top: 10rpx;}
.userfab_box .l{ float: left;}
.userfab_box text{ margin-left: 20rpx;float: left;font-size: 28rpx; font-weight: bold; color: #000000;}
</style>
